package com.lagou.homework02;

/**
 * 手机卡类
 * 特征：卡类型、卡号、用户名、密码、账户余额、通话时长(分钟)、上网流量
 * 行为： 显示(卡号 + 用户名 + 当前余额)
 */
public class MobileCard {
    private String cardType;
    private String cardNum;
    private String id;
    private String password;
    private double banlance;
    private int callTime;
    private int netTraffic;

    public MobileCard() {
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getBanlance() {
        return banlance;
    }

    public void setBanlance(double banlance) {
        this.banlance = banlance;
    }

    public int getCallTime() {
        return callTime;
    }

    public void setCallTime(int callTime) {
        this.callTime = callTime;
    }

    public int getNetTraffic() {
        return netTraffic;
    }

    public void setNetTraffic(int netTraffic) {
        this.netTraffic = netTraffic;
    }

    public void show()  {

        System.out.println("卡号： " + getCardNum() + "用户名 ： " + getId() + " 当前余额: " + getBanlance() + "元");
    }
}
